package animal;

public class Animal {
   protected String name;

    protected Animal(String name) {
        this.name = name;
    }
    public void eat(String food){
        System.out.println("我是一只小动物");
        System.out.println(name+"正在吃"+food);
    }
}

